home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 3.iso
/
bin
/
forum
/
loc
< prev
next >
Wrap
Text File
|
1996-11-11
|
976b
|
32 lines
#!/bin/csh
#
#video/x-sgi-movie-loc; movieplayer -nofork -v `head -1 %s`
#audio/x-mpeg-loc; playsound `head -1 %s`
if (-e /tmp/snt_debug) then
echo $0
foreach x ($*)
echo $x
end
endif
set base = `basename $4 loc`
set dir = `dirname $4`
if (-e /tmp/snt_debug) echo base=$base dir=$dir
if (`expr $4 : ^file:`) then
set file = `echo $dir/$base | sed -e 's/file://'`
if (-e /tmp/snt_debug) echo $2 $file
$2 $file
else
echo 'Unble to access this file locally, use the Copy to Disk" button.'
exit 1
if (-e /tmp/snt_debug) echo netscape -remote "saveAs(/usr/tmp/$base)" $dir/$base
netscape -remote "saveAs(/usr/tmp/$base)" $dir/$base
if (-e /tmp/snt_debug) echo $2 /usr/tmp/$base
$2 /usr/tmp/$base
if (-e /tmp/snt_debug) echo $2 "if -e /usr/tmp/$base rm /usr/tmp/$base"
if (-e /usr/tmp/$base) rm /usr/tmp/$base
endif